import React from 'react';
import {ReactLinkSelect} from "components/data/react-element";
import {confirm} from "components/state/toast";

class RemarkCustomToEdit extends React.Component {
    async onContactPhone(e) {
        e.preventDefault();
        e.stopPropagation();
        /*
        拨打客服电话
        400-8888-8888
        咨询、建议、投诉*/
        let ok = await confirm('拨打客服电话',
            '<span class="font-size-32">18018719198（微信同号）</span><br/>' +
            '<span class="font-size-30">添加客服微信号咨询</span>', {
                ok: {
                    text: '拨打电话'
                }
            });

        if (ok) {
            window.location.href = 'tel:18018719198';
        }
    }
    
    render() {
        return (
            <p className={"remark-custom-to-edit"}>
                *注：请提交后再
                {/*<a className={"blue"} onClick={this.onContactPhone.bind(this)}>联系客服</a>*/}
                <a>联系客服</a>
                美化内容
            </p>
        );
    }
}

export default RemarkCustomToEdit;